package com.vhall.component.entity.inav.enums;

import com.vhall.component.entity.dictionary.enums.BaseEnum;

/**
 * UserGuideShowTypeEnum-
 *  0:显示关注投顾 IP 信息,1:显示栏目订阅信息
 * @author xing.wang
 * @date 2023/11/6
 */
public enum UserGuideShowTypeEnum implements BaseEnum {
    SHOW_IP(0, "显示关注投顾IP信息"),
    SHOW_COLUMN(1, "显示栏目订阅信息");
    private final Integer value;
    private final String name;
    UserGuideShowTypeEnum(Integer value, String name) {
        this.value = value;
        this.name = name;
    }

    @Override
    public Integer getValue() {
        return value;
    }

    @Override
    public String getName() {
        return name;
    }
    public static String getNameByValue(Integer value) {
        for (UserGuideShowTypeEnum e : UserGuideShowTypeEnum.values()) {
            if (e.getValue().equals(value)) {
                return e.getName();
            }
        }
        return null;
    }
}
